<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li>
								公众号：<input type="text" name="jwid"/>
							</li>

							<li>
								名称：<input type="text" name="name"/>
							</li>

							<li>
								应用类型：<input type="text" name="applicationType"/>
							</li>

							<li>
								微信二维码图片：<input type="text" name="qrcodeimg"/>
							</li>

							<li>
								创建人：<input type="text" name="createBy"/>
							</li>

							<li>
								创建时间：<input type="text" name="createTime"/>
							</li>

							<li>
								微信号：<input type="text" name="weixinNumber"/>
							</li>

							<li>
								微信AppId：<input type="text" name="weixinAppid"/>
							</li>

							<li>
								微信AppSecret：<input type="text" name="weixinAppsecret"/>
							</li>

							<li>
								公众号类型：<input type="text" name="accountType"/>
							</li>

							<li>
								是否认证：<input type="text" name="authStatus"/>
							</li>

							<li>
								Access_Token：<input type="text" name="accessToken"/>
							</li>

							<li>
								token获取的时间：<input type="text" name="tokenGettime"/>
							</li>

							<li>
								api凭证：<input type="text" name="apiticket"/>
							</li>

							<li>
								apiticket获取时间：<input type="text" name="apiticketGettime"/>
							</li>

							<li>
								jsapiticket：<input type="text" name="jsapiticket"/>
							</li>

							<li>
								jsapiticket获取时间：<input type="text" name="jsapiticketGettime"/>
							</li>

							<li>
								类型：1手动授权，2扫码授权：<input type="text" name="authType"/>
							</li>

							<li>
								功能的开通状况：1代表已开通：<input type="text" name="businessInfo"/>
							</li>

							<li>
								公众号授权给开发者的权限集：<input type="text" name="funcInfo"/>
							</li>

							<li>
								授权方昵称：<input type="text" name="nickName"/>
							</li>

							<li>
								授权方头像：<input type="text" name="headimgurl"/>
							</li>

							<li>
								授权信息：<input type="text" name="authorizationInfo"/>
							</li>

							<li>
								刷新token：<input type="text" name="authorizerRefreshToken"/>
							</li>

							<li>
								令牌：<input type="text" name="token"/>
							</li>

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm hidden-xs" id="toolbar" role="group">
				<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="jiugongge:webJwid:add">
					<i class="fa fa-plus"></i> 添加
				</a>
				<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="jiugongge:webJwid:edit">
					<i class="fa fa-edit"></i> 修改
				</a>
				<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="jiugongge:webJwid:remove">
					<i class="fa fa-remove"></i> 删除
				</a>
				<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="jiugongge:webJwid:export">
						<i class="fa fa-download"></i> 导出
				 </a>
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('jiugongge:webJwid:edit')}]];
        var removeFlag = [[${@permission.hasPermi('jiugongge:webJwid:remove')}]];
        var prefix = ctx + "jiugongge/webJwid";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export",
                modalName: "系统公众号",
				search: false,
		        showExport: true,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'id', 
					title : '',
					visible: false
				},
				{
					field : 'jwid', 
					title : '公众号',
					sortable: true
				},
				{
					field : 'name', 
					title : '名称',
					sortable: true
				},
				{
					field : 'applicationType', 
					title : '应用类型',
					sortable: true
				},
				{
					field : 'qrcodeimg', 
					title : '微信二维码图片',
					sortable: true
				},
				{
					field : 'createBy', 
					title : '创建人',
					sortable: true
				},
				{
					field : 'createTime', 
					title : '创建时间',
					sortable: true
				},
				{
					field : 'weixinNumber', 
					title : '微信号',
					sortable: true
				},
				{
					field : 'weixinAppid', 
					title : '微信AppId',
					sortable: true
				},
				{
					field : 'weixinAppsecret', 
					title : '微信AppSecret',
					sortable: true
				},
				{
					field : 'accountType', 
					title : '公众号类型',
					sortable: true
				},
				{
					field : 'authStatus', 
					title : '是否认证',
					sortable: true
				},
				{
					field : 'accessToken', 
					title : 'Access_Token',
					sortable: true
				},
				{
					field : 'tokenGettime', 
					title : 'token获取的时间',
					sortable: true
				},
				{
					field : 'apiticket', 
					title : 'api凭证',
					sortable: true
				},
				{
					field : 'apiticketGettime', 
					title : 'apiticket获取时间',
					sortable: true
				},
				{
					field : 'jsapiticket', 
					title : 'jsapiticket',
					sortable: true
				},
				{
					field : 'jsapiticketGettime', 
					title : 'jsapiticket获取时间',
					sortable: true
				},
				{
					field : 'authType', 
					title : '类型：1手动授权，2扫码授权',
					sortable: true
				},
				{
					field : 'businessInfo', 
					title : '功能的开通状况：1代表已开通',
					sortable: true
				},
				{
					field : 'funcInfo', 
					title : '公众号授权给开发者的权限集',
					sortable: true
				},
				{
					field : 'nickName', 
					title : '授权方昵称',
					sortable: true
				},
				{
					field : 'headimgurl', 
					title : '授权方头像',
					sortable: true
				},
				{
					field : 'authorizationInfo', 
					title : '授权信息',
					sortable: true
				},
				{
					field : 'authorizerRefreshToken', 
					title : '刷新token',
					sortable: true
				},
				{
					field : 'token', 
					title : '令牌',
					sortable: true
				},
		        {
		            title: '操作',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	var actions = [];
		            	actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
						return actions.join('');
		            }
		        }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>